package clientGUI.userPanels.Controllers;



import clientserver.Client;
import clientserver.Packet;
import college.RequestTreatment;



public class CommiteePanelController
{
	Client client;
	int rid;
	RequestTreatment r;
	
	
	public CommiteePanelController(int id,Client cl)
	{
	    client = cl;
	    rid = id;
		
	}
	
	public void UpdateRequestState()
	{
		r = new RequestTreatment(client,rid);
		r.setcurrentstage(8);
		r.updatestageindb();
	}
	
	public void DenyChangeofRequest()
	{
		r = new RequestTreatment(client,rid);
		r.setcurrentstage(13);
		r.updatestageindb();
		
	}
	
	
	
	public void sendinfo(String s)
	{
		r = new RequestTreatment(client,rid);
		r.setcurrentstage(3);
		r.updatestageindb();
		String q;
		q = "Update Request_details r Set r.details = '"+s+"' Where id = '"+rid+"'" ;
		Packet p=new Packet(q);
		 p.setUpdatePacket();
		 client.SendPacketNowait(p);
		
	}
	
	
	
	
}
